package com.neuedu.part08;

import java.util.Scanner;

public class PanDuanZhiShu {
	public static void main(String[] args) {
		Scanner scanner=new Scanner(System.in);
		
			ma(scanner.nextInt());
		
	}

	private static void ma(int a) {
		boolean flag=true;
		for (int i = 2; i < a; i++) {
			if (a%i==0) {
				try {
					throw new Exception();
				} catch (Exception e) {
					
					flag=false;
				}
			}
		}
		if (flag) {
			System.out.println("是质数");
		}else {
			System.out.println("bu是质数");
			
		}
		
	}

}
